import http from "@/utils/http.js";

// 添加组织架构
export function addStructure(data) {
	return http.post('/organization/add', data)
}

// 删除组织架构
export function delStructure(data) {
	return http.post('/organization/del', data)
}

// 通过主键查询组织架构内容
export function getStructureByKey(params) {
	return http.get('/organization/getByKey/noAuth', params)
}

// 分页查询
export function getStructurePage(params) {
	return http.get('/organization/getPage/noAuth', params)
}

// 修改
export function updStructure(data) {
	return http.post('/organization/upd', data)
}
